package src;

public class Bouqet implements IBouqet {
	int numberOfFlower;
	int priceBouqet;
	IFlower bouqet[] = new IFlower[20];

	public void putFlowerInBouqet(IFlower flower) {
		bouqet[numberOfFlower] = flower;
		System.out.println("Flower added to the bouqet:" + flower.getType()
				+ "=" + flower.getPrice());
		priceBouqet = priceBouqet + bouqet[numberOfFlower].getPrice();
		numberOfFlower = numberOfFlower + 1;
	}

	public int getPriceBouqet() {
		return priceBouqet;
	}

	public void printInfoAboutMe() {
		for (int j = 0; j < numberOfFlower; j++) {
			System.out.println("Type Flower: " + bouqet[j].getType() + "  "
					+ "Price Flower: " + bouqet[j].getPrice() + "  "
					+ "Color Flower: " + bouqet[j].getColor());
		}
		System.out.println("PriceBouqet=" + getPriceBouqet());
	}

}
